<?php
include_once "xAP-functions/webincludes.php";
// update channel orders
if (isset($_POST["id"])){
	$i=1;
	foreach($_POST["id"] as $value){
		dbexec("update  xAP_TV_Channel set ChannelOrder=".$i." where ChannelID=".intval($value));
		$i++;
	}
}
?>
Saved